﻿using GalaSoft.MvvmLight.Command;
using GalaSoft.MvvmLight.Messaging;
using Tp.Interfaces;
using Tp.Interfaces.Commands;

namespace Tp.MainViewModel
{
	public class MainViewModelCommands : IMainViewModelCommands
    {
        #region Fields
		public RelayCommand CloseDialogCommand { get; set; }
        #endregion

        #region Properties
        #endregion

        #region C-Tor
        public MainViewModelCommands()
		{
			this.RegisterCommands(); 
		}
		#endregion

		#region Private methods
		private void RegisterCommands()
		{
			this.CloseDialogCommand = new RelayCommand(ExecuteCloseDialog);
		}

		private void ExecuteCloseDialog()
		{
			Messenger.Default.Send("CLOSEDIALOG");
		}
		#endregion
	}
}
